﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace server.app.lib
{
    public class MapEvent : Object
    {
        public static Dictionary<string, comm.lib.ObjEVDefine> GetObjEVDefineDic(comm.lib.ObjEVType evType)
        {
            var dic = new Dictionary<string, comm.lib.ObjEVDefine>();
            if (evType == comm.lib.ObjEVType.MAP_OBJ)
            {
                dic.Add("range", new comm.lib.ObjEVDefine(typeof(comm.lib.MapRange),
                    new comm.lib.MapRange.Round { Radius = 2 }));

                dic.Add("event", new comm.lib.ObjEVDefine(typeof(comm.lib.MapEvent),
                    new comm.lib.MapEvent.Command { Type = comm.lib.MapEvent.CommandType.LOC_LABEL }));
            }
            return dic;
        }

        public MapEvent(World world, comm.objst.ObjType objType, string dObjectId, string objectId)
            : base(world, objType, dObjectId, objectId)
        {
        }
    }
}
